home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBListBox / DialogThread.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.2 KB  |  56 lines

  1. // DialogThread.cpp : implementation file
  2. //    High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
  3.  
  4. #include "stdafx.h"
  5. #include "Listbox.h"
  6. #include "DialogThread.h"
  7. #include "ListboxDlg.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13.  
  14. #endif
  15.  
  16. extern ListboxDlg* g_plistDlg;            // global pointer to button dialog used for setting focus and closing
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // DialogThread
  20.  
  21. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  22.  
  23. DialogThread::DialogThread()
  24. {    
  25. }
  26.  
  27. DialogThread::~DialogThread()
  28. {
  29. }
  30.  
  31. BOOL DialogThread::InitInstance()
  32. {    
  33.     ListboxDlg BDlg;
  34.     g_plistDlg = &BDlg;
  35.     BDlg.DoModal();
  36.  
  37.     return TRUE;
  38. }
  39.  
  40. int DialogThread::ExitInstance()
  41. {
  42.     // TODO:  perform any per-thread cleanup here
  43.     return CWinThread::ExitInstance();
  44. }
  45.  
  46. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  47.     //{{AFX_MSG_MAP(DialogThread)
  48.         // NOTE - the ClassWizard will add and remove mapping macros here.
  49.     //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // DialogThread message handlers
  54.  
  55.  
  56.